package com.baizhi.service;

import com.baizhi.dto.UploadVideoDTO;
import com.baizhi.dto.VideoFeedDTO;
import com.baizhi.entity.Video;
import com.baizhi.po.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 视频(Video)表服务接口
 *
 * @author makejava
 * @since 2021-09-26 15:34:02
 */
public interface VideoService extends IService<Video> {

    //分页查询预先加载10条数据
    List<Video> queryByPage(Integer page, Integer per_page);

    InsertVideoPO insertVideo(UploadVideoDTO uploadVideoDTO, Integer uid);

    List<InsertVideoPO> queryById(Integer uid);

    List<QueryVideo> queryByCategoriesId(Integer page, Integer per_page, Integer categoryId);

    VideoPO queryByVideoId(Integer videoId);

    FeedVideoPO queryByVideosId(Integer id);

    VideoFeedDTO queryOneByVideoId(Integer id);

    List<VideoES> queryAllVideosForES();
}

